package equals_null;

public class Test {

	@SuppressWarnings("unused")
	void bar() {
		
		String x = "foo";

		if (x.equals(null)) { // bad form
			
			// doSomething();
		}

		if (x == null) { // preferred
			
			// doSomething();
		}
		
	}
}
